
/*
 * ****************************
 * Eric Doherty
 * Jesse Kinney
 * 
 * TCSS 422 Scheduler simulator
 * Event Class
 * 
 * 6/4/08
 * ****************************
 */

public class Event
{
  private EventTypes type;

  private Interrupt data;

  public static enum EventTypes
  {
    STARTIO1, STARTIO2, FULL, EMPTY, CRIT, UNBLOCKP, UNBLOCKC, UNBLOCKIO1, UNBLOCKIO2
  }

  public Event(EventTypes type)
  {
    this.type = type;
    this.data = null;
  }

  public Event(EventTypes type, Interrupt data)
  {
    this.type = type;
    this.data = data;
  }

  public EventTypes getType()
  {
    return type;
  }

  public Interrupt getData()
  {
    return data;
  }

}
